package com.linq.cool.beauty.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Author: yqlin
 * @Date: 2021/2/6 12:51
 * @Description:
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "beauty_brand")
public class BeautyBrandDTO implements Serializable {
    /**
     * 主键id
     */
    private Long id;
    /**
     * 名称
     */
    @NotBlank(message = "品牌名称不能为空")
    private String name;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    private Integer sort;

    /**
     * 品牌标志
     */
    @NotBlank(message = "品牌标志不能为空")
    private String logo;

    /**
     * 显示，1是0否
     */
    @NotNull(message = "显示状态不能为空")
    private Integer status;

    /**
     * 品牌描述
     */
    private String bDesc;

    /**
     * 商品分类ID集合
     */
    @NotEmpty(message = "商品分类不能为空")
    private List<Long> productCategoryIds;
}